package com.lg.atp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lg.atp.entity.TblControls;

public interface ControlDao {

	public List<TblControls> selectRootControl(@Param("appId")Long appId);
	
	public TblControls selectControlById(@Param("id")Long id);
	
	public List<TblControls> selectControlByParentId(@Param("id")Long id);
	
	public void saveControl(TblControls control);
	
	public void updateControl(TblControls control);
	
	public void delControl(Map<String,Object> map);
	
	public Long selectControlByName(Map<String,Object> map);
	
	public Long selectControlByCode(@Param("id")Long id);
	
	public void updateControlParent(Map<String,Object> map);
	
	//直接设置为根
	public void setControlToRoot(@Param("id")Long id);
	
	public void updateChildControlParent(Map<String,Object> map);
	
	public List<TblControls> selectControlWithChildById(@Param("id")Long id);
	
	public List<TblControls> selectControlByParam(Map<String,Object> map);
	
	
	public List<TblControls> selectControlName();
}
